<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>注册</title>
		<link rel="stylesheet" type="text/css" href="http://localhost/e-shop/xiangqu/Application/Index/View/Login/css/login.css"/>
		<script src="http://localhost/e-shop/xiangqu/Static/js/jquery-1.7.2.min.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
		$(function(){
        		
        		$('input[name=username]').blur(function(){
        			var value = $(this).val();
        			if(!value){
        				$('#u').html('*用户名不能为空*');
        			}else{
        				$('#u').html('');
        			}
        		})
        		$('input[name=password]').blur(function(){
        			var value = $(this).val();
        			if(!value){
        				$('#p').html('*密码不能为空*');
        			}else{
        				$('#p').html('');
        			}
        		})
        		$('input[name=code]').blur(function(){
        			var value = $(this).val();
        			if(!value){
        				$('#c').html('*验证码不能为空*');
        			}else{
        				$('#c').html('');
        			}
        		})
        		
        		$('#login').submit(function(){
        			var uvalue = $('input[name=username]').val();
        			if(!uvalue){
        				$('#u').html('*用户名不能为空*');
        			}else{
        				$('#u').html('');
        			}
        			var pvalue = $('input[name=password]').val();
        			if(!pvalue){
        				$('#p').html('*密码不能为空*');
        			}else{
        				$('#p').html('');
        			}
        			
        			if(!uvalue || !pvalue) return false;    			
 
        		})
        		
     
        		
        	})
        </script>
	</head>
	<body>
		<div id="header"></div>
		<div id="page">
			<div class="r_bg"></div>
			<div class="login">
				<div class="l_cont">
					<h1>登陆----想去网</h1>
					<div class="form">
						<form action="" method="post" id="login">
							<input type="text" name="username" placeholder="邮箱或者手机号" /><span id="u"></span>
							<input type="password" name="password" placeholder="密码" /><span id="p"></span>
							<input type="submit" class="log" value="登录" />
							<p class="reg"><span>没有账号!&nbsp;&nbsp;&nbsp;</span><a href="<?php echo U(('Index/Register/index'));?>">去注册>>></a></p>
						</form>
					</div>
					<div class="logo">
						<a href="<?php echo U('Index/Index/index');?>"><img src="http://localhost/e-shop/xiangqu/Application/Index/View/Login/images/logo.png"/></a>
					</div>
				</div>
			</div>
		</div>
	</body>
</html>
